#define _CRT_SECURE_NO_WARNINGS 1 
#include <stdio.h>  
int main()
{

    int i, j, k, n;

    for (n = 100; n < 1000; n++)
    {
        i = n / 100;
        j = n / 10 % 10;
        k = n % 10;
        if (i * 100 + j * 10 + k == i * i * i + j * j * j + k * k * k)
            printf("%-5d", n);
    }
    printf("\n");
    return 0;
}